<template>
  <section class="jumbotron">
    <h3 class="jumbotron-heading">Search Github Users</h3>
    <div>
      <input type="text" placeholder="enter the name you search" v-model="keyword"/>&nbsp;
      <button @click="handleSearch">Search</button>
    </div>
  </section>
</template>

<script>
export default {
  name:"SearchUser",
  data(){
    return {
      keyword:"",
    }
  },
  methods:{
    handleSearch(){
      if(!this.keyword) return ;
      this.$bus.$emit("search",this.keyword);
    },
  },
};
</script>

<style>

</style>